//
//  AppDelegate.h
//  DPGJ
//
//  Created by ZhuoLaiQiang@Gmail.com on 11-11-17.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@class RootViewController;

@class CustomNavigationController;

@interface AppDelegate : UIResponder <UIApplicationDelegate>


@property (strong, nonatomic) UIWindow                                      *window;
@property (nonatomic, retain) CustomNavigationController                    *customNavigationController;

@property (readonly, strong, nonatomic) NSManagedObjectContext              *managedObjectContext;
@property (readonly, strong, nonatomic) NSManagedObjectModel                *managedObjectModel;
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator        *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;

@end

extern RootViewController *g_rootViewController;
extern CustomNavigationController *g_customNavigationController;
